package com.wchc.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnMissingClass("com.wchc.config.WchcTest")
@EnableConfigurationProperties(WchcProperties.class)
public class MyConsumeStarter {

    @Bean
    public WchcAdapter wchcAdapter(){
        System.out.println("WchcAdapter");
        return new WchcAdapter();
    }
}
